package com.ktg.mapper;

import com.ktg.ktgcommon.domain.user.TPremission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PremissionMapper {
    @Select("SELECT * FROM `t_permission` tp INNER JOIN t_role_permission trp ON tp.id = trp.permission_id where trp.role_id=#{role_id}")
    public List<TPremission> getPremissionList(Integer roleId);
}
